﻿import axios from './AxiosHelper'

export const getCarts = async () => {
  const res = await axios.get('ShoppingCart')
  return res.data
}

export const updateCartSelect = async (cartGuids: string[], cartSelected: boolean, productNum: number) => {
  const res = await axios.post('ShoppingCart/CartSelected', {cartGuids, cartSelected, productNum})
  return res.data
}
